/**
 * 
 */
package pers.xwx.titan.bo;

/**
 * @author cakydeveloper
 *
 */
public class DruidLogObjManager {
	
	/**
	 * 线程变量
	 */
	private static ThreadLocal<DruidLogBO> threadLocalObject = new ThreadLocal<>();

	/**
	 * 获取线程对象
	 * @return
	 */
	public static DruidLogBO getDruidLog() {
		return threadLocalObject.get();
	}

	/**
	 * 储存线程对象
	 * @param druidLog
	 */
	public void setDruidLog(DruidLogBO druidLog) {
		if(druidLog != null){
			threadLocalObject.set(druidLog);
		}
	}

}
